package com.getui.java.advancedpushmessage;

import com.getui.java.COMM;
import com.gexin.rp.sdk.base.IAliasResult;
import com.gexin.rp.sdk.http.IGtPush;

public class AliasFunction3 {

	public static void main(String[] args) throws Exception {
		IGtPush push = new IGtPush(COMM.host, COMM.appKey, COMM.masterSecret);

		IAliasResult queryAlias = push.queryAlias(COMM.appId, COMM.CID);
		System.out.println("结果状态：" + queryAlias.getResult());
		System.out.println("根据CID获取的别名：" + queryAlias.getAlias());

		queryAlias = push.queryAlias(COMM.appId, "COMM.CID");
		System.out.println("结果状态：" + queryAlias.getResult());
		System.out.println("根据CID获取的别名：" + queryAlias.getAlias());
	}
}